﻿using AbpApplication.AppServices;
using Mesosphere.Dto;
using Mesosphere.InPut;
using Microsoft.AspNetCore.Mvc;

namespace AbpWebapi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ConsumerServiceController : ControllerBase
    {

        private readonly IConsumerService customService;

        public ConsumerServiceController(IConsumerService customService)
        {
            this.customService = customService;
        }
        [HttpPost]
        public async Task<ApiResponse> CreateInBoundOrder(InPut_CunsumerService InPut) =>await customService.CreateInBoundOrder(InPut);
        [HttpPost]
        public async Task<ApiResponse> CreateOutBoundOrder(InPut_CunsumerService2 InPut) => await customService.CreateOutBoundOrder(InPut);
        [HttpPost]
        public async Task<ApiResponse> GetMaterialInfo(InPut_CunsumerService3 InPut)=>await customService.GetMaterialInfo(InPut);
        [HttpPost]
        public  async Task<ApiResponse> MakeInventory(InPut_CunsumerService4 InPut)=>await customService.MakeInventory(InPut);


    }
}
